package com.zrrd.blog.system.mapper;

import com.zrrd.blog.api.entities.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2023-08-11
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
    boolean deleteRoleMenuByRoleId(@Param("roleId") String roleId);

    List<String> findMenuIdsById(@Param("id") String id);

    boolean saveRoleMenu(@Param("roleId") String roleId, @Param("menuIds") List<String> menuIds);
}
